package com.linzp.bishe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 账号编号 id
 * 账号	accounts
 * 密码	passwords
 * 角色	roles
 * </p>
 *
 * @author 林泽鹏
 * @since 2021-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
public class Accounts implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	private String accounts;

	private String passwords;

	private String roles;

	public Accounts(String accounts, String passwords, String roles) {
		this.accounts = accounts;
		this.passwords = passwords;
		this.roles = roles;
	}
}
